package com.code.day02;

public class KeHou {

    public static void main(String[] args)
    {
        System.out.println("hello world");
        System.out.println("hello world");
        System.out.println("hello world");
        System.out.println("hello world");
        System.out.println("hello world");

        System.out.println('a');
        System.out.println('b');
        System.out.println('c');
        System.out.println('d');
        System.out.println('e');

        System.out.println(1);
        System.out.println(2);
        System.out.println(3);
        System.out.println(4);
        System.out.println(5);

        System.out.println(1.1);
        System.out.println(2.2);
        System.out.println(3.3);
        System.out.println(4.4);
        System.out.println(5.5);

        System.out.println(true);
        System.out.println(false);

        byte minByte = -128;
        byte maxByte = 127;
        System.out.println(minByte);
        System.out.println(maxByte);

        short minShort = -32768;
        short maxShort = 32767;
        System.out.println(minShort);
        System.out.println(maxShort);

        int minInt = -2147483648;
        int maxInt = 2147483647;
        System.out.println(minInt);
        System.out.println(maxInt);

        long minLong = -2147483649L;
        long maxLong = 2147483648L;
        System.out.println(minLong);
        System.out.println(maxLong);

        float f1 = -3.14F;
        float f2 = 3.14F;
        System.out.println(f1);
        System.out.println(f2);

        double d1 = -3.4;
        double d2 = 3.4;
        System.out.println(d1);
        System.out.println(d2);

        char c1 = 'j';
        char c2 = 'a';
        char c3 = 'v';
        char c4 = 'a';
        char c5 = '@';
        System.out.println(c1);
        System.out.println(c2);
        System.out.println(c3);
        System.out.println(c4);
        System.out.println(c5);

        boolean yes = true;
        boolean no = false;
        System.out.println(yes);
        System.out.println(no);

        int a = 10;
        int b = 20;
        System.out.println("a = " + a);
        System.out.println("b = " + b);

        int temp = a;
        a = b;
        b = temp;
        System.out.println("a = " + a);
        System.out.println("b = " + b);

        int x = 100;
        int y = 200;
        int add = x + y;
        int sub = x - y;
        int mul = x * y;
        int div = x / y;
        System.out.println("add = " + add);
        System.out.println("sub = " + sub);
        System.out.println("mul = " + mul);
        System.out.println("div = " + div);

        double z = 100.8;
        double k = 20.6;

        double add2 = z + k;
        System.out.println("x,y的和为：" + add2);

        double sub2 = z - k;
        System.out.println("x,y的差为：" + sub2);

        double mul2 = z * k;
        System.out.println("x,y的积为：" + mul2);

        double div2 = z / k;
        System.out.println("x,y的商为：" + div2);
    }
}
